package org.ddd.productdemo.hexagonal.domain.port.incoming;

import org.ddd.productdemo.hexagonal.domain.model.Product;

import java.util.List;
import java.util.Optional;

public interface ProductService {

    List<Product> getAllProducts();
    Optional<Product> getProductById(Long id);
    Product createProduct(Product product);
    void updateStock(Long productId, Integer quantity);

}
